﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="MVCPets.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	System Portal
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>System Portal</h2>

    <% if (Request.IsAuthenticated && SessionHelper.UserRole <= RoleHelper.GetRoleValue("Administrator")) %>
    <% { %>
      <p>
        <%= Html.ActionLink("User Management", "Index", "UserManagement") %>
      </p>
      <p>
        <%= Html.ActionLink("Role Management", "Index", "RoleManagement") %>
      </p>
      <p>
        <%= Html.ActionLink("Pet Status Management", "Index", "PetStatusManagement") %>
      </p>
    <% } %>
</asp:Content>